REM Set the default web site to .NET Framework version 4.0
%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -iru

REM Make sure the "Distributed Transaction Coordinator" is started and automatic
for /F "tokens=3 delims=: " %%H in ('sc query "msdtc" ^| findstr "        STATE"') do (
  if /I "%%H" NEQ "RUNNING" (
   net start "msdtc"
  )
)

sc config msdtc start= auto

